package com.pbl6.back.domain;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.Date;
import java.util.Objects;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.Accessors;
import java.io.Serializable;
@Data
@NoArgsConstructor
@AllArgsConstructor
@TableName(value = "liaisons")
public class Liaisons{
    private static final long serialVersionUID = 1L;
    private Integer id;
    private String operator;
    private String name;
    private String sex;
    private String phonenum;
    private String email;
    private String employer;
    private String abode;
    
    public Liaisons(Liaisons liaisons) {
        if (Objects.nonNull(liaisons)) {
            this.id=liaisons.id;
            this.operator=liaisons.operator;
            this.name=liaisons.name;
            this.sex=liaisons.sex;
            this.phonenum=liaisons.phonenum;
            this.email=liaisons.email;
            this.employer=liaisons.employer;
            this.abode=liaisons.abode;
        }
    }
}
